Arguments
formula
a formula object, with the response on the left of a $\texttildelow$
operator, and the terms on the right. The response must be a
survival object as returned by the 'Surv' function like in survival package. The subcluster()
formula.terminalEvent
Not required.
data
a 'data.frame' in which to interpret the variables named in the
'formula'.
Frailty
Logical value. Is model with frailties fitted? If so, variance of frailty parameter is estimated. If not, Cox proportional hazards model is estimated using Penalized Likelihood on the hazardfunction. The default is FALSE.
recurrentAG
Logical value. Is Andersen-Gill model fitted? If so indicates that recurrent event times with the
counting process approach of Andersen and Gill is used. This formulation can be used for dealing with
time-dependent cov
cross.validation
Logical value. Is cross validation procedure used for estimating smoothing parameter in
the penalized likelihood estimation?
If so a search of the smoothing parameter using cross validation is done, with kappa1 as the
n.knots
integer giving the number of knots to use. Value required in the penalized likelihood estimation.
It corresponds to the (n.knots+2) splines functions for the approximation of the hazard or the survival functions.
Number of knots must be between 4 a
kappa1
positive smoothing parameter. The coefficient kappa of the integral of the squared
second derivative of hazard function in the fit (penalized log likelihood). To obtain an initial
value for kappa1 (or kappa2), a solu
kappa2
positive smoothing parameter in the penalized likelihood estimation for the second stratum, when data are stratified. See kappa1.
maxit
maximum number of iterations for the Marquardt algorithm. Default is 350
hazard
Type of hazard functions: "Splines" for semiparametric hazard function with the penalized likelihood estimation, "Piecewise-per" for piecewise constant hazard function using percentile, "Piecewise-equi" for piecewise constant hazard function using equidis
nb.int1
Number of intervals (between 1 and 20) for the parametric hazard functions ("Piecewise-per", "Piecewise-equi")
RandDist
Not implemented for nested frailty model
synopsis
frailtyPenal(formula, formula.terminalEvent, data, Frailty = FALSE,
joint = FALSE, recurrentAG = FALSE, cross.validation =
FALSE, n.knots, kappa1, kappa2, maxit = 350,
hazard = "Splines", nb.int1, nb.int2, RandDist = "Gamma")